<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<style>
v\:* {behavior:url(#default#VML);}

</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>lotex.Report</title>

<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />

<!-- LIBS -->
<script type="text/javascript" src="../../jquery-latest.pack.js"></script>
<script type="text/javascript" src="../../jquery-plugins.js"></script>
<!-- ENDLIBS -->
<script type="text/javascript" src="../../ext-jquery-adapter.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="../examples.css" />
</head>
<body>
<div id="test"></div>

</body>
</html>
<script type="text/javascript" src="lotex-all.js"></script>
<script type="text/javascript">
// 初始化画布
// TODO auto detect and init
var G = lotex.gfx.Draw;
var P = lotex.gfx.Painter;

var canvas = G.canvas().id('test').x(0).y(0)
    .width(945).height(648).fill('red')
    .on(document.getElementById("test"));

//G.path().moveTo(1,1).lineTo(1,100).lineTo(200,200).lineTo(200,1).on(canvas);
G.path().d("m496,329 l 496,603 ar 221,54,771,604,496,603,496,604 l 496,329 x").on(canvas);

lotex.gfx.Draw.cross(canvas,99,596)
//G.circle().cx(50).cy(50).r(50).on(canvas);
</script>